<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]>      <html class="no-js"> <!--<![endif]-->
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>过渡h5页面</title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="">
</head>
<style>
  /* .container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .container .image {
    background: url('https://file.40017.cn/trainwechat/miniapp/hsrtfront/pinpin_banner.png') no-repeat center;
    background-size: 100% auto;
    min-height: 180px;
    width: 100%;
    margin-bottom: 80px;
  } */
</style>

<body>
  <!--[if lt IE 7]>
      <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="#">upgrade your browser</a> to improve your experience.</p>
    <![endif]-->
  <!-- <div class="container">
    <div class="image"></div>
    <p>稍等，马上转到小程序！！</p>
  </div> -->
</body>
<script type="text/javascript" async defer>
  function getQueryVariable(variable) {
    var query = window.location.search.substring(1);
    var vars = query.split("&");
    for (var i = 0; i < vars.length; i++) {
      var pair = vars[i].split("=");
      if (pair[0] == variable) { return pair[1]; }
    }
    return (false);
  }
  // console.log(getQueryVariable('type'))
  // type 为 0就是高铁周边游的h5中转页 1就是捞单问询的h5中转页
  var currentType = getQueryVariable('type') || 0
  currentType = Number(currentType)
  var smallRoutineUrl = ['weixin://dl/business/?t=ikYzkt4gxCm', 'weixin://dl/business/?t= *TICKET*'][currentType]
  window.location.href = smallRoutineUrl
  // 这个还真不可以放在狮子座模板，因为狮子座模板域名在外部比如4G是无法访问的，只能另找域名
  // 利用URL Scheme通过短信打开小程序  --相关文档 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/url-scheme.html
  // IOS 的话短信中直接给 weixin://dl/business/?t=ikYzkt4gxCm 链接即可 
  // 安卓短信中需要给到的链接是: http://leonidapi.17usoft.com/sagittarius/=train_transfer?leonid_preview=1
  // 安卓短信中点击链接 ==> 跳转到本页面 ==> 跳到小程序 (代金券页)
  // 举例 小程序代金券url 'weixin://dl/business/?t=ikYzkt4gxCm' 的生成的方式如下
  // 找到页面路径: page/home/webview/webview + 启动query参数: src=https://wx.17u.cn/pub/mycard
</script>

</html>